Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add encrypted-notes-dapp example based on vetKD #569

Merged
merged 4 commits into from
Jul 11, 2023

Conversation

fspreiss
Copy link
Member

@fspreiss fspreiss commented Jul 10, 2023

Adds a copy of the encrypted-notes-dapp example, adapted to use the proposed vetKD feature.

In particular, instead of creating a principal-specific AES key and syncing it across devices (by means of device-specific RSA keys), the notes are encrypted with an AES key that is derived (directly in the browser) from a principal-specific vetKey obtained from the backend canister (in encrypted form, using an ephemeral transport key), which itself obtains it from the vetKD system API. This way, there is no need for any device management in the dapp.

The difference between the original encrypted-notes-dapp and the this one here can be seen in #561.

Note the Disclaimer in the README.md.

Disclaimer

This example uses an insecure implementation of the proposed vetKD system API in a pre-compiled form via the vetkd_system_api.wasm. This is not intended for use in production or for sensitive data! This example is solely provided for demonstration purposes to collect feedback on the mentioned vetKD system API. This disclaimer is also included in the README.

@fspreiss fspreiss force-pushed the franzstefan/add-enc-notes-vetkd-example branch from 9b63347 to 9da9743 Compare July 10, 2023 12:56
@fspreiss fspreiss changed the title Franzstefan/add enc notes vetkd example Add encrypted-notes-dapp example based on vetKD Jul 10, 2023
@fspreiss fspreiss requested a review from sesi200 July 10, 2023 16:22
@fspreiss fspreiss marked this pull request as ready for review July 10, 2023 23:47
@fspreiss fspreiss requested a review from a team as a code owner July 10, 2023 23:47
@sesi200 sesi200 merged commit 7e6e76d into master Jul 11, 2023
@sesi200 sesi200 deleted the franzstefan/add-enc-notes-vetkd-example branch July 11, 2023 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants